-- GENERATED SPELL FOR [Guard Didier] --


function spell0_16226(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(22120,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16226', 594, 1)
end

function spell1_16226(pUnit, Event) --@Mark of Didier,n/a--
pUnit:FullCastSpellOnTarget(28114,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16226', 0, 1)
end

function Sorts_16226(pUnit, Event)
local choix_sorts_16226 = math.random(0, 1)
if choix_sorts_16226 == 0 then
pUnit:RegisterEvent('spell0_16226', 1, 1)
end
if choix_sorts_16226 == 1 then
pUnit:RegisterEvent('spell1_16226', 1, 1)
end
end

function mob16226_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16226', math.random(1500, 3000), 1)
end

function mob16226_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16226_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16226_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16226, 1, 'mob16226_Action')
RegisterUnitEvent(16226, 2, 'mob16226_Leave')
RegisterUnitEvent(16226, 3, 'mob16226_Kill')
RegisterUnitEvent(16226, 4, 'mob16226_Die')
